package com.xishu.entity.customer;

import com.xishu.annotation.dao.Encrypt;
import com.xishu.annotation.dao.Hidden;
import com.xishu.entity.AbstractEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;

@Api(description = "VIP续费邮件模板")
@Entity(name = "vip_renew_email_template")
@Table(indexes = {@Index(columnList = "companyId")})
public class VipRenewEmailTemplate extends AbstractEntity {
    @ApiModelProperty(value = "公司ID")
    private Long companyId;

    @ApiModelProperty(value = "续费邮件模板")
    private String title;

    @ApiModelProperty(value = "邮件标题")
    @Transient
    private String emailTitle;

    @ApiModelProperty(value = "邮件内容")
    @Lob
    @Column(columnDefinition = "MEDIUMTEXT")
    private String content;

    @ApiModelProperty(value = "邮件标题")
    @Transient
    private String emailContent;

    @ApiModelProperty(value = "提前多少天提醒")
    private Integer remindDay;

    @Transient
    @ApiModelProperty(value = "预览发送邮件列表")
    private String preViewEmail;

    @ApiModelProperty(value = "stripe是否启动")
    private Boolean stripeEnable;

    @ApiModelProperty(value = "stripe ak")
    private String stripeAk;

    @ApiModelProperty(value = "stripe sk")
    @Encrypt
    @Hidden
    private String stripeSk;

    @ApiModelProperty(value = "stripe web hook sk")
    @Encrypt
    @Hidden
    private String stripeWebHookSk;

    @ApiModelProperty(value = "stripe已经配置")
    private Boolean stripeComplete;

    @ApiModelProperty(value = "小时")
    private Integer hour;

    public Integer getHour() {
        return hour;
    }

    public void setHour(Integer hour) {
        this.hour = hour;
    }

    public String getEmailTitle() {
        return emailTitle;
    }

    public void setEmailTitle(String emailTitle) {
        this.emailTitle = emailTitle;
    }

    public String getEmailContent() {
        return emailContent;
    }

    public void setEmailContent(String emailContent) {
        this.emailContent = emailContent;
    }

    public Boolean getStripeComplete() {
        return stripeComplete;
    }

    public void setStripeComplete(Boolean stripeComplete) {
        this.stripeComplete = stripeComplete;
    }

    public Boolean getStripeEnable() {
        return stripeEnable;
    }

    public void setStripeEnable(Boolean stripeEnable) {
        this.stripeEnable = stripeEnable;
    }

    public String getStripeAk() {
        return stripeAk;
    }

    public void setStripeAk(String stripeAk) {
        this.stripeAk = stripeAk;
    }

    public String getStripeSk() {
        return stripeSk;
    }

    public void setStripeSk(String stripeSk) {
        this.stripeSk = stripeSk;
    }

    public String getStripeWebHookSk() {
        return stripeWebHookSk;
    }

    public void setStripeWebHookSk(String stripeWebHookSk) {
        this.stripeWebHookSk = stripeWebHookSk;
    }

    public String getPreViewEmail() {
        return preViewEmail;
    }

    public void setPreViewEmail(String preViewEmail) {
        this.preViewEmail = preViewEmail;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getRemindDay() {
        return remindDay;
    }

    public void setRemindDay(Integer remindDay) {
        this.remindDay = remindDay;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("VipRenewEmailTemplate{");
        sb.append("companyId=").append(companyId);
        sb.append(", title='").append(title).append('\'');
        sb.append(", emailTitle='").append(emailTitle).append('\'');
        sb.append(", content='").append(content).append('\'');
        sb.append(", emailContent='").append(emailContent).append('\'');
        sb.append(", remindDay=").append(remindDay);
        sb.append(", preViewEmail='").append(preViewEmail).append('\'');
        sb.append(", stripeEnable=").append(stripeEnable);
        sb.append(", stripeAk='").append(stripeAk).append('\'');
        sb.append(", stripeSk='").append(stripeSk).append('\'');
        sb.append(", stripeWebHookSk='").append(stripeWebHookSk).append('\'');
        sb.append(", stripeComplete=").append(stripeComplete);
        sb.append(", hour=").append(hour);
        sb.append('}');
        return sb.toString();
    }
}
